#include <stdio.h>
#include <stdlib.h>

int hornor(int list[], int n, int x)
{
	if (n == 0) return list[n];

	return x*hornor(list, n-1, x) + list[n];			
}
